package com.yesep.learn.design.common.pojo;

/**
 * 飞行动物
 */
public abstract class FlyingAnimal extends Animal {

    public void move(int speed) {
        fly(speed);
    }

    public void fly(int speed) {
        System.out.printf("The %s %s is flying at %d m/s. \n", this.getClass().getSimpleName().toLowerCase(), getName(), speed);
    }
}
